现有样式保持不变，添加新的语言切换样式

/* 头部控制区域 */
.header-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* 语言切换器 */
.language-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-btn {
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: white;
  border-radius: 18px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  min-width: 50px;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.lang-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.lang-btn:active {
  transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .header-controls {
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
  }
  
  .language-switcher {
    order: 2;
  }
  
  .connection-status {
    order: 1;
    font-size: 12px;
  }
  
  .lang-btn {
    font-size: 11px;
    padding: 5px 10px;
    min-width: 45px;
  }
}

/* 聊天标题调整 */
.chat-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  margin: 0;
  border-radius: 15px 15px 0 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.title-text {
  font-size: 18px;
  font-weight: 600;
}

.connection-status {
  font-size: 13px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

/* 应用容器 */
.app-container {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  min-height: 100vh;
  width: 100vw;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 0;
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-sizing: border-box;
}

.chat-container {
  width: 100vw;
  max-width: 100vw;
  min-height: 100vh;
  max-height: 100vh;
  background: white;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 消息容器 */
.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #fafafa;
}

/* 消息样式 */
.message {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: fadeIn 0.4s ease;
  width: 100%;
  padding: 0 10px;
}

.message.user {
  justify-content: flex-end;
  flex-direction: row-reverse;
  margin-left: auto;
  margin-right: 0;
}

.message.bot {
  justify-content: flex-start;
  flex-direction: row;
  margin-left: 0;
  margin-right: auto;
}

/* 头像样式 */
.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

.message.user .message-avatar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.message.bot .message-avatar {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* 消息内容容器 */
.message-wrapper {
  display: flex;
  flex-direction: column;
  max-width: 65%;
  min-width: 200px;
}

.message-content {
  padding: 14px 18px;
  border-radius: 20px;
  word-wrap: break-word;
  line-height: 1.5;
  font-size: 15px;
  position: relative;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.message-content:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* 用户消息样式 */
.message.user .message-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-bottom-right-radius: 6px;
  margin-right: 8px;
}

.message.user .message-content::before {
  content: '';
  position: absolute;
  top: 10px;
  right: -8px;
  width: 0;
  height: 0;
  border-left: 8px solid #764ba2;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

/* AI回复消息样式 */
.message.bot .message-content {
  background: white;
  color: #2c3e50;
  border: 2px solid #e8f4fd;
  border-bottom-left-radius: 6px;
  margin-left: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.message.bot .message-content::before {
  content: '';
  position: absolute;
  top: 10px;
  left: -10px;
  width: 0;
  height: 0;
  border-right: 8px solid white;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  z-index: 2;
}

.message.bot .message-content::after {
  content: '';
  position: absolute;
  top: 8px;
  left: -12px;
  width: 0;
  height: 0;
  border-right: 10px solid #e8f4fd;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  z-index: 1;
}

/* 错误消息样式 */
.message.error .message-content {
  background-color: #ffebee;
  border: 1px solid #ffcdd2;
  color: #d32f2f;
}

.message.error .message-text {
  font-weight: 500;
}

.message-image-error {
  max-width: 100px;
  height: auto;
  border-radius: 8px;
  border: 1px dashed #ffcdd2;
  background-color: #ffebee;
  padding: 10px;
  opacity: 0.7;
}

/* 消息时间戳 */
.message-timestamp {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
  text-align: right;
}

.message.bot .message-timestamp {
  text-align: left;
}

.message-image {
  max-width: 200px;
  max-height: 200px;
  border-radius: 12px;
  margin-top: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.message-image:hover {
  transform: scale(1.05);
}

/* Markdown表格样式 */
.message-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.message-content table:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.message-content th {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 700;
  padding: 16px 20px;
  text-align: left;
  border-bottom: none;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.message-content th:first-child {
  border-top-left-radius: 12px;
}

.message-content th:last-child {
  border-top-right-radius: 12px;
}

.message-content th::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.3) 100%);
}

.message-content td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  vertical-align: top;
  line-height: 1.6;
  background: white;
  transition: all 0.2s ease;
  position: relative;
}

.message-content tr:nth-child(even) td {
  background: rgba(102, 126, 234, 0.02);
}

.message-content tr:hover td {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.05) 100%);
  transform: scale(1.01);
}

.message-content tr:last-child td {
  border-bottom: none;
}

.message-content tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

.message-content tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

/* 表格特殊效果 */
.message-content td:first-child {
  font-weight: 600;
  color: #667eea;
  border-left: 3px solid transparent;
  background: linear-gradient(white, white) padding-box, 
              linear-gradient(135deg, #667eea, #764ba2) border-box;
}

.message-content tr:hover td:first-child {
  border-left: 3px solid #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.08) 100%) padding-box,
              linear-gradient(135deg, #667eea, #764ba2) border-box;
}

/* 表格加载动画 */
@keyframes tableSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-content table {
  animation: tableSlideIn 0.6s ease-out;
}

/* 表头闪光效果 */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.message-content th::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shimmer 3s infinite;
}

/* 数据单元格图标效果 */
.message-content td[data-label]::before {
  content: attr(data-label);
  display: none;
  font-weight: 600;
  color: #667eea;
  margin-right: 8px;
}

/* 表格响应式设计 */
@media (max-width: 768px) {
  .message-content table {
    font-size: 12px;
    border-radius: 8px;
  }
  
  .message-content th,
  .message-content td {
    padding: 12px 16px;
  }
  
  .message-content th {
    font-size: 12px;
    letter-spacing: 0.5px;
  }
  
  .message-content table:hover {
    transform: none;
  }
  
  .message-content tr:hover td {
    transform: none;
  }
}

@media (max-width: 480px) {
  .message-content table {
    font-size: 11px;
  }
  
  .message-content th,
  .message-content td {
    padding: 8px 12px;
  }
}

/* Markdown段落样式 */
.message-content p {
  margin: 8px 0;
  line-height: 1.6;
}

.message-content ul,
.message-content ol {
  margin: 8px 0;
  padding-left: 20px;
}

.message-content li {
  margin: 4px 0;
  line-height: 1.5;
}

/* 输入容器 */
.input-container {
  padding: 20px;
  background: white;
  border-top: 1px solid #e0e0e0;
}

.image-preview-container {
  position: relative;
  margin-bottom: 10px;
}

.image-preview {
  max-width: 100px;
  max-height: 100px;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
}

.remove-image-button {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f44336;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.remove-image-button:hover {
  background: #d32f2f;
  transform: scale(1.1);
}

.input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-buttons {
  display: flex;
  gap: 8px;
}

.icon-button {
  width: 40px;
  height: 40px;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  user-select: none;
}

.icon-button:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
}

.icon-button:active,
.icon-button.button-active {
  transform: translateY(0);
  background: #d0d0d0;
}

/* 图片生成按钮样式 */
.icon-button.active {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.icon-button.active:hover {
  background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.icon-button.disabled {
  background: #f0f0f0;
  color: #ccc;
  cursor: not-allowed;
  transform: none;
}

.icon-button.disabled:hover {
  background: #f0f0f0;
  transform: none;
}

.input-field {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.input-field:focus {
  border-color: #667eea;
}

.send-button {
  padding: 12px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  min-width: 60px;
}

.send-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.send-button:active {
  transform: translateY(0);
}

.send-button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.send-button.stop-button {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  color: white;
}

.send-button.stop-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.send-button.stop-button:active {
  transform: translateY(0);
}

/* 表情选择器 */
.emoji-picker {
  position: absolute;
  bottom: 60px;
  left: 20px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-width: 300px;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.emoji-item {
  width: 35px;
  height: 35px;
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emoji-item:hover {
  background: #f0f0f0;
  transform: scale(1.2);
}

/* 隐藏滚动条 */
.messages-container {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.messages-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

/* 响应式设计 */
@media (max-width: 768px) {
  .app-container {
    padding: 5px;
    align-items: flex-start;
  }
  
  .chat-container {
    height: calc(100vh - 10px);
    max-width: 100%;
    max-height: 95vh;
    min-height: 300px;
    border-radius: 10px;
  }
  
  .chat-title {
    padding: 10px 15px;
    border-radius: 10px 10px 0 0;
  }
  
  .title-text {
    font-size: 16px;
  }
  
  .header-controls {
    gap: 10px;
  }
  
  .language-switcher {
    padding: 1px;
  }
  
  .lang-btn {
    padding: 4px 8px;
    font-size: 11px;
    min-width: 40px;
  }
  
  .connection-status {
    font-size: 11px;
    padding: 3px 6px;
  }
  
  .messages-container {
    padding: 10px;
  }
  
  .message {
    margin-bottom: 12px;
    gap: 6px;
    padding: 0;
  }
  
  .message.user {
    margin-left: 55%;
    margin-right: 0;
  }
  
  .message.bot {
    margin-right: 15%;
    margin-left: 0;
  }
  
  .message-avatar {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  
  .message-wrapper {
    max-width: 85%;
    min-width: 120px;
  }
  
  .message-content {
    padding: 10px 14px;
    font-size: 14px;
    border-radius: 16px;
  }
  
  .message.user .message-content {
    margin-right: 4px;
    border-bottom-right-radius: 4px;
  }
  
  .message.bot .message-content {
    margin-left: 4px;
    border-bottom-left-radius: 4px;
  }
  
  .message-timestamp {
    font-size: 9px;
    margin-top: 2px;
  }
  
  .input-container {
    padding: 12px;
  }
  
  .input-row {
    gap: 6px;
  }
  
  .icon-button {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }
  
  .input-field {
    padding: 10px 14px;
    font-size: 16px; /* 防止iOS缩放 */
    border-radius: 20px;
  }
  
  .send-button {
    padding: 10px 14px;
    font-size: 13px;
    min-width: 45px;
    border-radius: 20px;
  }
  
  .emoji-picker {
    left: 8px;
    right: 8px;
    max-width: none;
    bottom: 55px;
  }
  
  .emoji-grid {
    grid-template-columns: repeat(8, 1fr);
  }
  
  .emoji-item {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }
}

/* 超小屏幕适配 (小于480px) */
@media (max-width: 480px) {
  .app-container {
    padding: 2px;
  }
  
  .chat-container {
    height: 100vh;
    border-radius: 0;
  }
  
  .chat-title {
    padding: 8px 12px;
    border-radius: 0;
  }
  
  .title-text {
    font-size: 15px;
  }
  
  .header-controls {
    flex-direction: row;
    gap: 8px;
  }
  
  .lang-btn {
    padding: 3px 6px;
    font-size: 10px;
    min-width: 35px;
  }
  
  .connection-status {
    font-size: 10px;
    padding: 2px 5px;
  }
  
  .messages-container {
    padding: 8px;
  }
  
  .message {
    margin-bottom: 10px;
    gap: 5px;
  }
  
  .message.user {
    margin-left: 10%;
  }
  
  .message.bot {
    margin-right: 10%;
  }
  
  .message-avatar {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }
  
  .message-wrapper {
    max-width: 90%;
    min-width: 100px;
  }
  
  .message-content {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 14px;
  }
  
  .message.user .message-content {
    border-bottom-right-radius: 3px;
  }
  
  .message.bot .message-content {
    border-bottom-left-radius: 3px;
  }
  
  .input-container {
    padding: 10px 8px;
  }
  
  .input-row {
    gap: 5px;
  }
  
  .icon-button {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  .input-field {
    padding: 8px 12px;
    font-size: 16px;
    border-radius: 18px;
  }
  
  .send-button {
    padding: 8px 12px;
    font-size: 12px;
    min-width: 40px;
    border-radius: 18px;
  }
  
  .emoji-picker {
    left: 5px;
    right: 5px;
    bottom: 50px;
    padding: 10px;
  }
  
  .emoji-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
  }
  
  .emoji-item {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
}

/* 图片生成按钮 */
.image-gen-btn {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.image-gen-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.image-gen-btn:active {
  transform: translateY(0);
}

/* 天气按钮 */
.weather-btn {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(116, 185, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.weather-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(116, 185, 255, 0.4);
}

.weather-btn:active {
  transform: translateY(0);
}

/* L3管理按钮 */
.l3-manager-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.l3-manager-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.l3-manager-btn:active {
  transform: translateY(0);
}

/* L3模式按钮 */
.l3-mode-btn {
  background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(253, 121, 168, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.l3-mode-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(253, 121, 168, 0.4);
}

.l3-mode-btn:active {
  transform: translateY(0);
}

.l3-mode-btn.active {
  background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
  box-shadow: 0 2px 8px rgba(0, 184, 148, 0.3);
}

.l3-mode-btn.active:hover {
  box-shadow: 0 4px 15px rgba(0, 184, 148, 0.4);
}

/* 训练管理按钮 */
.training-btn {
  background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(162, 155, 254, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.training-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(162, 155, 254, 0.4);
}

.training-btn:active {
  transform: translateY(0);
}

/* 天气组件容器 */
.weather-widget-container {
  position: relative;
  margin: 15px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideDown 0.3s ease-out;
  width: calc(100% - 40px);
  max-width: 450px;
  margin: 15px auto;
  overflow: visible;
  min-height: auto;
  box-sizing: border-box;
}

/* 训练管理器容器 */
.training-manager-container {
  position: relative;
  margin: 15px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideDown 0.3s ease-out;
  width: calc(100% - 40px);
  max-width: 1000px;
  margin: 15px auto;
  overflow: visible;
  min-height: auto;
  box-sizing: border-box;
  max-height: 80vh;
  overflow-y: auto;
}

/* 天气组件容器响应式 */
@media (max-width: 768px) {
  .weather-widget-container {
    width: calc(100% - 20px);
    margin: 5px auto;
    padding: 10px;
    border-radius: 12px;
    max-height: 70vh;
    overflow-y: auto;
  }
  
  .training-manager-container {
    width: calc(100% - 20px);
    margin: 5px auto;
    padding: 10px;
    border-radius: 12px;
    max-height: 75vh;
    overflow-y: auto;
  }
}

@media (max-width: 480px) {
  .weather-widget-container {
    width: calc(100% - 10px);
    margin: 3px auto;
    padding: 8px;
    border-radius: 10px;
    max-height: 75vh;
  }
  
  .training-manager-container {
    width: calc(100% - 10px);
    margin: 3px auto;
    padding: 8px;
    border-radius: 10px;
    max-height: 80vh;
  }
  
  .widget-header {
    padding: 5px 8px 0;
  }
  
  .close-widget-btn {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }
}

@media (max-width: 320px) {
  .weather-widget-container {
    width: calc(100% - 6px);
    margin: 2px auto;
    padding: 6px;
    max-height: 80vh;
  }
  
  .widget-header {
    padding: 4px 6px 0;
  }
  
  .close-widget-btn {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }
}

@media (max-height: 600px) {
  .weather-widget-container {
    max-height: 60vh;
    margin: 2px auto;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.widget-header {
  display: flex;
  justify-content: flex-end;
  padding: 10px 15px 0;
}

.close-widget-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  color: white;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.close-widget-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message {
  animation: fadeIn 0.3s ease;
}

/* 加载状态 */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* L3状态指示器 */
.l3-status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: 6px;
  margin-bottom: 1px;
}

.l3-status-indicator.available {
  background-color: #4caf50;
  box-shadow: 0 0 4px rgba(76, 175, 80, 0.8);
}

.l3-status-indicator.unavailable {
  background-color: #f44336;
  box-shadow: 0 0 4px rgba(244, 67, 54, 0.8);
}
